package com.yunhe.service;

import java.util.List;

import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import com.yun.dao.adminLogin;
import com.yunhe.bean.Admin;
import com.yunhe.util.MySession;

public class a {

	@Test
	public void checklogin(){			
		Admin admin = new Admin();
		admin.setAname("heyuji");
		admin.setApass("123456");
		SqlSession se = new MySession().getSession();
		adminLogin mapper = se.getMapper(adminLogin.class);
		 List<Admin> checkname = mapper.checkname(admin);
				for (Admin admin2 : checkname) {
					System.out.println(admin2);
				}
	}
}
